﻿@model List<Entity.Flow>
@{
    Layout = "~/Views/Shared/_Style.cshtml";
}

@*layer*@
<link href="~/js/lib/layui/dist/css/layui.css" rel="stylesheet" />
<script src="~/js/lib/jquery/jquery-3.2.1.js"></script>
<script src="~/js/lib/layui/dist/layui.js"></script>
<script src="~/js/content/tool.js"></script>
@*flow*@
<script type="text/javascript" src="~/js/lib/flow/plugin/jquery.min.js"></script>
<script type="text/javascript" src="~/js/lib/flow/codebase/GooFunc.js"></script>
<script type="text/javascript" src="~/js/lib/flow/plugin/json2.js"></script>
<link href="~/css/flow/default.css" rel="stylesheet" />
<script type="text/javascript" src="~/js/lib/flow/codebase/GooFlow.js"></script>
<script type="text/javascript" src="~/js/lib/flow/codebase/GooFlow.color.js"></script>
<link href="~/js/lib/flow/codebase/GooFlow.css" rel="stylesheet" />
<link href="~/css/flow/seeFlow.css" rel="stylesheet" />

<script src="~/js/content/leave/addLeave.js"></script>
<script src="~/js/content/leave/seeLeaveFlow.js"></script>
<form class="layui-form" action="">

    <div class="layui-row">
        <div class="layui-tab layui-tab-brief" lay-filter="tab" style="margin: 0px">
            <ul class="layui-tab-title">
                <li class="layui-this">基本信息</li>
                <li>流程图</li>
            </ul>
            <div class="layui-tab-content" style="height: 100px;">
                <div class="layui-tab-item layui-show">

                    <div class="layui-form-item">
                        <label class="layui-form-label">假单名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="Name" lay-verify="yz" autocomplete="off" placeholder="请输入假单名称" class="layui-input">
                        </div>
                        <br />
                        <label class="layui-form-label">假单说明</label>
                        <div class="layui-input-block">
                            <input type="text" name="Content" autocomplete="off" lay-verify="yz" placeholder="请输入假单说明" class="layui-input">
                        </div>
                        <br />
                        <div class="layui-inline">
                            <label class="layui-form-label">流程选择</label>
                            <div class="layui-input-block">
                                <select name="FormId" lay-verify="yz" lay-search="" lay-filter="flowSelect" id="FlowsId">
                                    <option value="">直接选择或搜索选择</option>
                                    @foreach (var item in Model)
                                    {
                                        <option value="@item.Id">@item.Name</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <fieldset class="layui-elem-field site-demo-button" style="width:970px;height:405px">
                            <legend>表单样式预览</legend>
                            <br />
                            <div class="container">
                                <div id="content"></div>
                            </div>
                        </fieldset>
                        <div class="layui-form-item" style="margin:0 0 0 35% ">
                            <div class="layui-input-block">
                                <br />
                                <button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div id="demo" style="margin:5px;float:left"></div>
                </div>
            </div>
            <br />
            <br />
        </div>
        <input type="hidden" name="FlowId" id="FlowId" />
        <input type="hidden" name="Fields" id="Fields" value="0">
    </div>
</form>

<input type="hidden" name="FlowContent" id="FlowContent" />
<input type="hidden" name="FormContent" id="FormContent" />

